<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<!-- 
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goodcategory_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goodcategory_id" data-rule="required" data-source="goodcategory/index" data-params='{"custom[type]":"goods","isTree":"1"}' data-field="flname" class="form-control selectpage" name="row[goodcategory_id]" type="text" value="">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_name" data-rule="required" class="form-control" name="row[goods_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pirce')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pirce" data-rule="required" class="form-control" step="0.01" name="row[pirce]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('C_pirce')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-c_pirce" class="form-control" step="0.01" name="row[c_pirce]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Good_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-good_images" class="form-control" size="50" name="row[good_images]" type="textarea">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-good_images" class="btn btn-danger faupload" data-input-id="c-good_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-good_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-good_images" class="btn btn-primary fachoose" data-input-id="c-good_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-good_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-good_images"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Freight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-freight" class="form-control" step="0.01" name="row[freight]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('库存')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stock" class="form-control" step="0.01" name="row[stock]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" min="0" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gooddetails')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-gooddetails" class="form-control editor" rows="5" name="row[gooddetails]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
